package com.leyou.dao;

import com.leyou.entity.SpuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.vo.BrandAndProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * spu表，该表描述的是一个抽象性的商品，比如 iphone8
 * 
 * @author Daifeng
 * @email 2661184062@qq.com
 * @date 2020-12-25 16:44:46
 */
@Mapper
public interface SpuDao extends BaseMapper<SpuEntity> {

    List<BrandAndProduct> getBrandAndProduct();

    void SaveSaleable(@Param("code") int code, @Param("id") Long id);
}
